﻿using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using System;
namespace LP
{
    public abstract class AbsWindow : CancelTokenPattern, ILifecycle
    {
        protected UIMgr UIMgr { get; private set; }
        public AbsWindow(UIMgr uIMgr)
        {
            UIMgr = uIMgr;
        }
        public virtual void OnShow(ITuple tuple = null, Action action = null)
        {

        }

        public abstract void OnHide(ITuple tuple = null);

        public override void OnInit()
        {
            base.OnInit();
        }

        public override void OnDestroy()
        {
            base.OnDestroy();
        }
    }
}